package com.anivia.common.core.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

/**
 * 分页查询结果
 *
 * @author wangj
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema
public class PageVO<T> {

    @Schema(description = "数据")
    private List<T> records = Collections.emptyList();

    @Schema(description = "总条数")
    private Integer total = 0;
}
